﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace laba2.IoC
{
  public class ServiceInstaller : IWindsorInstaller
    {
      public void Install(IWindsorContainer container, IConfigurationStore store)
      {
          container.Register(Classes.FromThisAssembly().Where(type => type.Name.EndsWith("Service")));
      }
    }
}
